﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UFrame.TableCfg
{
    [System.Serializable]
    public class GuideFactorCfg : IRow
    {
        public int ID { get { return id; } }
/*0*/   public int id { get; private set; } //GuideFactorCfg
/*1*/   public int type_id { get; private set; } //功能
/*2*/   public string[] args { get; private set; } //参数
        public void SetData(string[] array)
        {
            var arrayLen = array.Length;
            if (arrayLen > 0 && !string.IsNullOrEmpty(array[0])) id = Convert.ToInt32(array[0]);
            if (arrayLen > 1 && !string.IsNullOrEmpty(array[1])) type_id = Convert.ToInt32(array[1]);
            if (arrayLen > 2) args = UConvert.TostringArray(array[2]);
        }
    }
}
